package org.tigris.subversion.svnant.commands;

import java.io.File;
import org.tigris.subversion.svnant.SvnAntUtilities;
import org.tigris.subversion.svnclientadapter.ISVNClientAdapter;
import org.tigris.subversion.svnclientadapter.SVNClientException;

public class CreateRepository extends SvnCommand
{
  private static final String MSG_CANNOT_CREATE_REPOSITORY = "Cannot create repository at '%s'";
  private File path = null;
  private String repositoryType = null;

  public void execute()
  {
    try
    {
      getClient().createRepository(this.path, this.repositoryType);
    }
    catch (SVNClientException localSVNClientException)
    {
      throw ex(localSVNClientException, "Cannot create repository at '%s'", new Object[] { this.path.getAbsolutePath() });
    }
  }

  protected void validateAttributes()
  {
    SvnAntUtilities.attrNotNull("path", this.path);
  }

  public void setPath(File paramFile)
  {
    this.path = paramFile;
  }

  public void setRepositoryType(String paramString)
  {
    this.repositoryType = paramString;
  }
}

/* Location:           C:\Users\Administrator\Desktop\svnant.jar
 * Qualified Name:     org.tigris.subversion.svnant.commands.CreateRepository
 * JD-Core Version:    0.6.0
 */